package views.components.misc
{
	import com.adobe.crypto.MD5;
	
	import mx.utils.StringUtil;
	
	public class GravatarImage
	{
		public static function getImageUrl(email:String, size:Number):String{
			StringUtil.trim( email );
			email = email.toLowerCase();
			return "http://www.gravatar.com/avatar/" + MD5.hash(email) + "?s=" + size.toString(); 
		}

	}
}